/**
 * @author xkh
 * @date 2019-12-07 21:05
 */
package com.itheima;

import com.itheima.constant.RedisMessageConstant;
import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import redis.clients.jedis.JedisPool;

public class test {

@Test
    public void test01(){
    ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext("springmvc.xml");
    JedisPool jedisPool = applicationContext.getBean(JedisPool.class);
    System.out.println(jedisPool);
    jedisPool.getResource().setex("甲乙丙" + RedisMessageConstant.SENDTYPE_ORDER,30 * 60,"1234");

    }

}
